package com.haierp.service.authority;

import java.util.List;
import java.util.Map;
import java.util.Set;

import com.baomidou.framework.service.ISuperService;
import com.haierp.model.authority.RoleHai;
import com.haierp.util.JsonPageResult;
import com.haierp.vo.authority.RoleQueryVO;

/**
 * 
 * Title: IRoleServiceHai.java
 * Description: 
 *
 * @author jc
 * Apr 17, 2017
 *
 */
public interface IRoleServiceHai extends ISuperService<RoleHai> {
	
	void deleteRoleById(Long id);
	
	Integer queryRolesCountByName(String name, Long id);
	
	Integer queryRolesCount(RoleQueryVO roleQueryVO);

	JsonPageResult<List<RoleHai>> queryRoleList(RoleQueryVO roleQueryVO);
	
    List<Long> queryResourceIdListByRoleId(Long id);

    Map<String, Set<String>> queryResourceMapByUserId(Long userId);
    
    void updateRoleResource(Long roleId, String resourceIds);
}